<div class="widget newest-post">
    <h3>推荐文章</h3>
    <div class="widget-content">
        <ul>
            <?php $this->widget('Widget_Post_Recommend')->to($items); ?>
            <?php while($items->next()): ?>
                <li>
                    <a title="<?php $items->title(); ?>" href="<?php $items->permalink(); ?>" draggable="false">
                    <span class="thumbnail">
                        <img class="thumb"
                            data-original="<?php if (strlen($items->fields->logoUrl) > 0): ?>
                                <?php $items->fields->logoUrl() ?>
                                <?php else: ?>
                                <?php $items->options->themeUrl('dist/img/default.jpg'); ?>
                                <?php endif; ?>"
                            src="<?php if (strlen($this->fields->logoUrl) > 0): ?>
                                <?php $items->fields->logoUrl() ?>
                                <?php else: ?>
                                <?php $items->options->themeUrl('dist/img/default.jpg'); ?>
                                <?php endif; ?>"
                            alt="<?php $items->title(); ?>" draggable="false">
                    </span>
                        <span class="text"><?php $items->title(); ?></span>
                        <!--<span class="muted">-->
                        <!--    <i class="glyphicon glyphicon-user"></i> --><?php //$this->author(); ?>
                        <!--</span>-->
                        <span class="muted">
                        <i class="glyphicon glyphicon-time"></i>
                        <?php $items->date(); ?>
                    </span>
                        <span class="muted">
                        <i class="glyphicon glyphicon-comment"></i> <?php $items->commentsNum(); ?>
                    </span>
                    </a>
                </li>
            <?php endwhile; ?>
        </ul>
    </div>
</div>
